package business.report.impl;

import business.report.ForestrySeedProductionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.ForestrySeed;
import report.domain.ForestrySeedProduction;
import report.domain.ForestrySeedProductionCriteria;
import report.mapper.ForestrySeedProductionMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "fsProductionService")
public class ForestrySeedProductionServiceImpl implements ForestrySeedProductionService{
    @Autowired
    ForestrySeedProductionMapper forestrySeedProductionMapper;

    @Override
    public List<ForestrySeedProduction> getForestrySeedProduction() {
        ForestrySeedProductionCriteria criteria= new ForestrySeedProductionCriteria();
        criteria.createCriteria().getAllCriteria();
        return forestrySeedProductionMapper.selectByExample(criteria);
    }
}
